<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Pullword api usage</title>
    <meta name="keywords" content="pullword api">
    <meta name="description" content="an online service of pulling chinese words from paragraphs, which is supported by Liang Bin(pennyliang.com) ">
    <link rel="stylesheet" href="http://apps.bdimg.com/libs/bootstrap/3.3.4/css/bootstrap.css">
    <link rel="stylesheet" href="http://apps.bdimg.com/libs/bootstrap-glyphicons/1.0/css/bootstrap-glyphicons.css">
    <style>
        .page-footer {
            padding-top: 50px;
            padding-bottom: 50px;
            margin-top: 100px;
            color: #99979c;
            text-align: center;
            background-color: #f8f8f8;
            border-color: #e7e7e7;
        }
    </style>
    <script type="text/javascript">
        var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
        document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F7c04459c43e769dc2852b78d1d5f922b' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script src="http://apps.bdimg.com/libs/html5shiv/3.7/html5shiv.min.js"></script>
    <script src="http://apps.bdimg.com/libs/respond.js/1.4.2/respond.js"></script>
    <script src="http://apps.bdimg.com/libs/jquery/1.9.1/jquery.js"></script>
    <script src="http://apps.bdimg.com/libs/bootstrap/3.3.4/js/bootstrap.min.js"></script>

</head>
<body>
<nav class="navbar navbar-default">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#sibling" aria-expanded="false">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">
                PullWord API Usage
            </a>
        </div>
        <div class="collapse navbar-collapse" id="sibling">
            <ul class="nav navbar-nav">
                <li><a href="http://www.pullword.com">PullWord</a></li>
            </ul>
        </div>
    </div>
</nav>
<div class="container">
    <div class="row">
        <div class="col-md-12">
            <h3>Pullword api usage</h3>
            <div class="panel panel-default">
                <div class="panel-body">
                    all data (input &amp; output) must be <b>utf8</b> encoded string
                </div>
            </div>

            <h3>get method</h3>
            <div class="panel panel-default">
                <div class="panel-body">
                    http://api.pullword.com/get.php<br>
                    source=[a paragraph of chinese words] for example: source=清华大学是好学校<br>
                    param1=[threshold] for example: param1=0 to pull all word, param1=1 to pull word with probability with 100%.<br>
                    param2=[debug] for example: param2=0 debug model is off, param2=1 debug mode in on(show all probabilities of each
                    word)
                </div>
                <div class="panel-body">
                    <a href="http://api.pullword.com/get.php?source=%E6%B8%85%E5%8D%8E%E5%A4%A7%E5%AD%A6%E6%98%AF%E5%A5%BD%E5%AD%A6%E6%A0%A1&amp;param1=0&amp;param2=1"
                       target="blank">点击使用get方式</a> <br>
                </div>
                <div class="panel-footer">
                    注：<br>
                    api.pullword.com 域名下绑定3个IP，分别是美团云2个IP和阿里云IP，每次调用根据dns解析的不同自然分流。<br><br>

                    如果您需要高可靠性调用，可以采用IP方法调用，根据需求自行在三台机器上分流，一台机器挂掉，快速切到另外一台<br><br>
                    <a href="http://43.241.223.121/get.php?source=%E6%B8%85%E5%8D%8E%E5%A4%A7%E5%AD%A6%E6%98%AF%E5%A5%BD%E5%AD%A6%E6%A0%A1&amp;param1=0&amp;param2=1"
                       target="blank">美团云主机(北京机房43.241.223.121）</a><br>
                    <a href="http://103.37.150.219/get.php?source=%E6%B8%85%E5%8D%8E%E5%A4%A7%E5%AD%A6%E6%98%AF%E5%A5%BD%E5%AD%A6%E6%A0%A1&amp;param1=0&amp;param2=1"
                       target="blank">美团云主机(北京机房103.37.150.219)</a><br>
                    <a href="http://120.26.6.172/get.php?source=%E6%B8%85%E5%8D%8E%E5%A4%A7%E5%AD%A6%E6%98%AF%E5%A5%BD%E5%AD%A6%E6%A0%A1&amp;param1=0&amp;param2=1"
                       target="blank">阿里云主机(杭州机房120.26.6.172))</a><br>
                </div>
            </div>

            <h3>post method</h3>
            <div class="panel panel-default">
                <div class="panel-body">
                    http://api.pullword.com/post.php<br>
                    source=[a paragraph of chinese words] for example: source=清华大学是好学校<br>
                    param1=[threshold] for example: param1=0 to pull all word, param1=1 to pull word with probability with 100%.<br>
                    param2=[debug] for example: param2=0 debug model is off, param2=1 debug mode in on(show all probabilities of each
                    word)<br>
                    sample php code:
                    <p>
                        <code>
                            function httpPost($url,$postData) <br>
                            { <br>
                            &nbsp;&nbsp;$ch = curl_init(); <br>
                            &nbsp;&nbsp;curl_setopt($ch,CURLOPT_URL,$url); <br>
                            &nbsp;&nbsp;curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);<br>
                            &nbsp;&nbsp;curl_setopt($ch,CURLOPT_HEADER, false); <br>
                            &nbsp;&nbsp;curl_setopt($ch, CURLOPT_POST, count($postData));<br>
                            &nbsp;&nbsp;curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);<br>

                            &nbsp;&nbsp;$output=curl_exec($ch);<br>

                            &nbsp;&nbsp;curl_close($ch); <br>
                            &nbsp;&nbsp;return $output;<br>
                            }<br>
                            echo httpPost("http://api.pullword.com/post.php","source=清华大学是个好学校&amp;param1=0&amp;param2=1");<br>
                        </code>
                    </p>
                    <p class="text-danger">
                        <b>特别注明：超过30个汉字的分词请求，请使用get方法，不要用post方法，否则会效率低，且会出错。</b>
                    </p>
                </div>
            </div>

            <h3>R method(R language)</h3>
            <div class="panel panel-default">
                <div class="panel-body">
                    An R package for pullword.com,support by (sina weibo: @严酷的魔王)<br>
                    details: <a href="https://github.com/hetong007/pullword" target="_blank">https://github.com/hetong007/pullword</a>
                </div>
            </div>


            <h3>Python method</h3>
            <div class="panel panel-default">
                <div class="panel-body">
                    An Python package for pullword.com, support by(sina weibo:@何斌_HUST)<br>
                    details: <a href="https://github.com/binhe22/pullword" target="_blank">https://github.com/binhe22/pullword</a>
                </div>
            </div>


            <h3>Golang method</h3>
            <div class="panel panel-default">
                <div class="panel-body">
                    A Golang package for pullword.com. support by(sina weibo:@邓宏才-GZ)<br>
                    details: <a href="https://github.com/denghongcai/pullword" target="_blank">https://github.com/denghongcai/pullword</a>
                </div>
            </div>


            <h3>Json method</h3>
            <div class="panel panel-default">
                <div class="panel-body">
                    output as json for pullword.com, support by(小问)<br>
                    details:<a
                            href="http://pullword.leanapp.cn/get?source=%E6%B8%85%E5%8D%8E%E5%A4%A7%E5%AD%A6%E6%98%AF%E4%B8%AA%E5%A5%BD%E5%AD%A6%E6%A0%A1&amp;json=1&amp;param1=0&amp;param2=1"
                            target="_blank">https://pullword.leanapp.cn</a>

                </div>
            </div>

            <h3>Perl client</h3>
            <div class="panel panel-default">
                <div class="panel-body">
                    pullword - The perl agent for Pullword(a online Chinese segmentation System) api! . 感谢 @double-桔 友情提供 <br>
                    details: <a href="https://github.com/bollwarm/pollword">github.com/bollwarm/pollword</a>

                </div>
            </div>

            <h3>Go lang</h3>
            <div class="panel panel-default">
                <div class="panel-body">
                    client for pullword with golang 感谢 @姜灏 友情提供 <br>
                    details: <a href="https://github.com/tiantour/pw">github.com/tiantour/pw</a>
                </div>
            </div>

            <h3>Result format</h3>
            <div class="panel panel-default">
                <div class="panel-body">
                    all results are formatted as follow<br>
                    <code>
                    word1\r\n<br>
                    word2\r\n<br>
                    ...<br>
                    wordn\r\n<br>
                    \r\n\r\n<br>
                    </code>
                    if debug mode is on<br>
                    <code>
                    word1:probability(word1)\r\n<br>
                    word2:probability(word2)\r\n <br>
                    ...<br>
                    wordn:probability(wordn)\r\n<br>
                    \r\n\r\n<br>
                    </code>
                </div>
            </div>


            <h3>Online Demo</h3>
            <div class="panel panel-default">
                <div class="panel-body">
                    go our online demo -&gt; <a href="http://pullword.com/">go </a>
                </div>
            </div>


            <h3>Donation addresss:</h3>
            <div class="panel panel-default">
                <div class="panel-body">
                    zhifubao: mgigabyte@gmail.com<br>
                    PayPal : pennynju@gmail.com
                </div>
            </div>


            <h3>Other information</h3>
            <div class="panel panel-default">
                <div class="panel-body">
                    just for fun! and these APIs are free for everbody for ever and for any purpose without the permission of ours. <br>

                    however, if you find any bad case, pleas email us : mgigabyte@gmail.com <br>
                    Our domain is bought from Godaddy.com and DNS service is bought from dnspod.cn respectively.
                </div>
            </div>
        </div>
    </div>
</div>

<div class="container">
    <h3>后台云主机赞助名单</h3>
    <table class="table table-hover">
        <tr>
            <td>冯厂长</td>
            <td>2014-7月</td>
            <td>@Fenng</td>
        </tr>
        <tr>
            <td>程先生</td>
            <td>2014-8月</td>
            <td></td>
        </tr>
        <tr>
            <td>刘老师</td>
            <td>2014-9月</td>
            <td></td>
        </tr>
        <tr>
            <td>周鸿祎</td>
            <td>2014-10月</td>
            <td></td>
        </tr>
        <tr>
            <td>曾经的阿里码农</td>
            <td>2014-11月</td>
            <td></td>
        </tr>
        <tr>
            <td>梁斌</td>
            <td>2014-12月</td>
            <td></td>
        </tr>
        <tr>
            <td>qiuyuexp</td>
            <td>2015-1月</td>
            <td>@qiuyuexp</td>
        </tr>
        <tr>
            <td>刘老师</td>
            <td>2015-2月</td>
            <td>第二次</td>
        </tr>
        <tr>
            <td>董方_Vin</td>
            <td>2015-3月</td>
            <td>@董方_Vin</td>
        </tr>
        <tr>
            <td>搬运大数据的亨利</td>
            <td>2015-4月</td>
            <td>@搬运大数据的亨利</td>
        </tr>
        <tr>
            <td>英老师</td>
            <td>2015-5月</td>
            <td></td>
        </tr>
        <tr class="info">
            <td>美团云</td>
            <td>2015-6月到2017年-6月</td>
            <td>@美团云 @string_tang</td>
        </tr>
    </table>
</div>


</body>
<footer class="page-footer">
    <div class="container">
        Contact 电话：010-56037785 手机：13366254629<br>
        服务提供商：北京八友科技有限公司<br>
        <a href="http://www.miitbeian.gov.cn/publish/query/indexFirst.action">京ICP备16014169号</a>
    </div>
</footer>
</html>